﻿using System.ComponentModel.DataAnnotations;

namespace Model.Entity.Ware
{
    /// <summary>
    /// 商品表
    /// </summary>
    public class TB_Ware : EntityBase_LONG
    {
        /// <summary>
        /// 名称(64)
        /// </summary>
        [Required,MaxLength(64)]
        public string Name { get; set; }
        /// <summary>
        /// EAN13(13)
        /// </summary>
        [Required,MaxLength(13)]
        public string EAN13 { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        [Required]
        public decimal Price { get; set; }
        /// <summary>
        /// 原价
        /// </summary>
        [Required]
        public decimal OriginPrice { get; set; }
        /// <summary>
        /// 成本价
        /// </summary>
        [Required]
        public decimal CostPrice { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        [Required]
        public decimal TaxRate { get; set; }
        /// <summary>
        /// 状态类型Id
        /// </summary>
        [Required]
        public int StateTypeId { get; set; }
        /// <summary>
        /// 描述(128)
        /// </summary>
        [MaxLength(128)]
        public string? Description { get; set; }
        /// <summary>
        /// 品牌类型ID
        /// </summary>
        public int? BrandTypeId { get; set; }
        /// <summary>
        /// 制造商类型ID
        /// </summary>
        public int? ManufacturerId { get; set; }
        /// <summary>
        /// 供应商类型ID
        /// </summary>
        public int? SupplierTypeId { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public decimal? Discount { get; set; }
        /// <summary>
        /// 下架时间
        /// </summary>
        public DateTime? DelistDate { get; set; }
    }
}
